{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">

                    <div class="tab-content">
                        <div class="ibox-content">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户ID：</label>
                                <div class="col-sm-9">
                                    <input name="userid" type="number" class="form-control" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">相关用户ID：</label>
                                <div class="col-sm-9">
                                    <textarea id="uids" class="form-control" rows="7" disabled></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">充值总和(元)：</label>
                                <div class="col-sm-9">
                                    <input id="count" type="number" class="form-control" disabled value="">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
{load href="__JS__xlsx.core.min.js"}
<script type="text/javascript">
    $(document).ready(function(){
        $("#button").click(function(){
            ajaxFun("POST","",$(".form-horizontal").serialize(),"json",function(ret){
                if(ret){
                    $('#count').val(ret.ret.topup);
                    $('#uids').val(ret.ret.userids);
                    layer.msg(ret.err ? ret.err : '查询成功')
                }else{
                    swal_msg("错误",ret,"error");
                }
            });
        });
    });

</script>

<style type="text/css">
.tbutton{ 
  position: fixed;
  top:300px;
  width: 100%;
  background: #fff;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid #F5EFEF;
  z-index: 99999999999
}
#button{ width:120px; margin: 0 auto;}
.wrapper-content{ padding-bottom:500px;margin-bottom: 75px;}
</style>

<div class="tbutton">
  <div id="button"><button class="btn btn-w-m btn-primary" type="button"><i class="fa fa-check"></i> 查询</button></div>
</div>
